package com.kk.bridge;

/**
 * 桥接模式
 *
 * @author 王志强
 * @date 2021-12-24
 */
abstract class AbstractPhoneType {

    /**
     * 聚合品牌
     */
    private final Brand brand;

    public AbstractPhoneType(Brand brand) {
        this.brand = brand;
    }

    protected void open() {
        brand.open();
    }

    protected void call() {
        brand.call();
    }

    protected void close() {
        brand.close();
    }
}
